<%--
  Created by IntelliJ IDEA.
  User: li
  Date: 2021/11/16
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/jsp/common/head.jsp"%>
<div class="right">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>角色管理页面</span>
    </div>
    <div class="search">
        <a href="${pageContext.request.contextPath}/role/toAdd" >添加角色</a>
    </div>
    <!--角色-->
    <table class="providerTable" cellpadding="0" cellspacing="0">
        <tr class="firstTr">
            <th width="10%">角色编号</th>
            <th width="20%">角色名</th>
            <th width="10%">创建时间</th>
            <th width="30%">操作</th>
        </tr>
        <c:forEach var="role" items="${rList}" varStatus="status">
            <tr>
                <td>
                    <span>${role.roleCode}</span>
                </td>
                <td>
                    <span>${role.roleName}</span>
                </td>
                <td>
                    <span><fm:formatDate value="${role.creationDate}"/></span>
                </td>
                <td>
                    <span><a class="modifyRole" href="javascript:;" roleid="${role.id }" rolename="${role.roleName }"><img src="${pageContext.request.contextPath }/statics/images/upd.png" alt="修改" title="修改"/></a></span>
                    <span><a class="deleteRole" href="javascript:;" roleid="${role.id }" rolename="${role.roleName }"><img src="${pageContext.request.contextPath }/statics/images/del.png" alt="删除" title="删除"/></a></span>
                </td>
            </tr>
        </c:forEach>
    </table>
    <%-- <input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
     <c:import url="rollpage.jsp">
         <c:param name="totalCount" value="${totalCount}"/>
         <c:param name="currentPageNo" value="${currentPageNo}"/>
         <c:param name="totalPageCount" value="${totalPageCount}"/>
     </c:import>--%>
</div>
</section>
<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeUse">
    <div class="removerChid">
        <h2>提示</h2>
        <div class="removeMain">
            <p>你确定要删除该角色吗？</p>
            <a href="#" id="yes">确定</a>
            <a href="#" id="no">取消</a>
        </div>
    </div>
</div>

<%@include file="/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/js/rolelist.js"></script>


